package org.dxy.domain.event.route;

import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * @description: 工艺路线禁用事件
 * @author: dxy
 * @createTime: 2025/6/13 22:26
 */
public record RouteDisabledEvent(
    /**
     * 工艺路线ID
     */
    Long routeId
) implements DomainEvent {
    
    @Override
    public Long aggregateId() {
        return routeId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.ROUTE.getKey();
    }
    
    @Override
    public String eventType() {
        return RouteEventTypeEnum.DISABLED.getKey();
    }
} 